package com.gnerv.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.cms.entity.Article;
import com.gnerv.cms.entity.Content;

import java.util.List;

/**
 * <p>
 * CMS平台-文章表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-07-01
 */
public interface IArticleService extends IService<Article> {
    boolean createArticle(String cId, Article article, Content content);

    boolean deleteArticle(String bId);

    boolean updateArticle(String cId, Article article, Content content);

    Article selectArticle(String bId);

    List<Article> listArticle(Article article);

    List<Article> selectArticleByCid(String cId);
}
